package com.jichangxiu.server.platform.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.jichangxiu.common.entity.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("platform_menu_power")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "菜单权限实体")
public class PlatformMenuPower extends BaseEntity implements Serializable {

    @Schema(description = "权限ID")
    @TableId(value = "power_id", type = IdType.ASSIGN_UUID)
    private String powerId;

    @TableField("menu_id")
    @Schema(description = "菜单ID")
    private String menuId;

    @TableField("power_code")
    @Schema(description = "权限标识")
    private String powerCode;

    @TableField("power_name")
    @Schema(description = "权限名称")
    private String powerName;

    @TableField("power_path")
    @Schema(description = "请求地址")
    private String powerPath;

    @TableField("status")
    @Schema(description = "状态（false停用 true正常）")
    private Boolean status;

    @TableLogic
    @TableField("deleted")
    @Schema(description = "是否删除（0否 1是）")
    private String deleted;

}
